home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 350 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: gate.net!not-for-mail
  2. From: feathers@gate.net (Michael Feathers)
  3. Newsgroups: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2,comp.lang.eiffel
  4. Subject: Re: Hungarian notation
  5. Followup-To: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2,comp.lang.eiffel
  6. Date: 3 Jan 1996 19:55:11 -0500
  7. Organization: CyberGate, Inc.
  8. Message-ID: <4cf8hf$8fe@hopi.gate.net>
  9. References: <30C40F77.53B5@swsbbs.com> <marnoldDJEvtJ.1Lx@netcom.com> <4aleun$jlk@ns.RezoNet.NET> <marnoldDJMDBG.CFz@netcom.com> <4asnkr$7b0@solutions.solon.com> <4ath75$e7i@barnacle.iol.ie> <4b4kij$svt@news.microsoft.com> <dewar.819489496@schonberg> <4bd
  10.  <4cc2b2$11jq@navajo.gate.net> <4cca41$3l5@weck.brokersys.com>
  11. NNTP-Posting-Host: hopi.gate.net
  12. X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
  13.  
  14. jguthrie@brokersys.com wrote:
  15. : Michael Feathers (feathers@gate.net) wrote:
  16. : : Where I work, all the truly portable code is written in terms of 
  17. : : typedefs.  We alter the typedefs in an include file to alter data
  18. : : sizes and performance characeristic, and our variant of Hungarian
  19. : : uses these type names.
  20. : Why don't you just abandon the type declarations completely and use a
  21. : prefix on the variable names to define the type?  Hey, wait a minute.
  22. : I've seen this BEFORE!  What was it called?  FORTRAN, wasn't it?  And
  23. : how about how those old microcomputer BASICs used suffixes to determine
  24. : types?
  25. : The more things change, the more they stay the same.
  26.  
  27. Maybe there's a reason for that ;-)
  28.  
  29. : My attitude remains the same:  Any naming convention works better than
  30. : none, but embedding the type in the name is probably a bad idea.
  31.  
  32. I really don't see why.  Hungarian is particularly useful in the
  33. presence of polymorphism.
  34.  
  35. How can it hurt?
  36.  
  37.  
  38.